/*--------------------------------------------------------------------------------------------------
Yatak Operation System Project Copyright 2012-2013
Author : Ilya Churaev
Started : 8 Jan 2013		Updated : 8 Jan 2013
File Name : mutex.h			Purpose : MOS kernel mutex
--------------------------------------------------------------------------------------------------*/
#ifndef _YATAK_MUTEX_H
#define _YATAK_MUTEX_H

#ifdef __cplusplus
extern "C" {
#endif

#include <sys/types.h> 

bool mutex_enter(mutex_t *mutex/*, bool wait*/);
void mutex_leave(mutex_t *mutex);

#ifdef __cplusplus
}
#endif

#endif
